﻿<Window x:Class="baihoadon.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Hoá Đơn bán hàng" Height="350" Width="700" Loaded="Window_Loaded">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="468*" />
            <ColumnDefinition Width="210*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <ToolBarTray Grid.ColumnSpan="2">
            <ToolBar Band="1" BandIndex="1">
                
                
                <Button Name="mnxoa" ToolTip="xoa" Click="cmdDelete_Click">
                    <StackPanel Orientation="Horizontal">
                        <Image HorizontalAlignment="Right" Source="d:/Images/DeleteHS.png"/>
                        <TextBlock VerticalAlignment="Center">xóa</TextBlock>
                    </StackPanel>
                </Button>
               
                <Button ToolTip="Print">
                    <StackPanel Orientation="Horizontal">
                        <Image HorizontalAlignment="Right" Source="d:/Images/PrintHS.png"></Image>
                        <TextBlock VerticalAlignment="Center">Int</TextBlock>
                    </StackPanel>
                </Button>
                <Button  ToolTip="thoat" Name="btClose" Click="btClose_Click">
                    <StackPanel Orientation="Horizontal">
                        <Image HorizontalAlignment="Right" Source="d:/Images/StopHS.png"/>
                        <TextBlock VerticalAlignment="Center">thoát</TextBlock>
                    </StackPanel>
                </Button>
            </ToolBar>
        </ToolBarTray>
        <DataGrid Name="datagrid" Grid.Row="1" AutoGenerateColumns="False" Grid.ColumnSpan="2">
            <DataGrid.Columns>
            <DataGridTextColumn Header="Số hóa dơn" Width="100" Binding="{Binding sohd}"></DataGridTextColumn>
            <DataGridTextColumn Header="Tên hàng" Width="100" Binding="{Binding tenhang}"></DataGridTextColumn>
            <DataGridTextColumn Header="Số lượng" Width="100" Binding="{Binding soluong}"></DataGridTextColumn>
            <DataGridTextColumn Header="Đơn giá" Width="100" Binding="{Binding dongia}"></DataGridTextColumn>
            <DataGridTextColumn Header="Trị giá" Width="100" Binding="{Binding trigia}"></DataGridTextColumn>
            <DataGridTextColumn Header="Khuyến mãi" Width="100" Binding="{Binding khuyenmai}"></DataGridTextColumn>
            <DataGridTextColumn Header="Diễn giải" Width="100" Binding="{Binding diengiai}"></DataGridTextColumn>
            </DataGrid.Columns>
        </DataGrid>
        <StatusBar Grid.Row="2">
            <StatusBarItem Name="sbiSohd" Content="Tổng số hóa đơn:"/>
        </StatusBar>

    </Grid>
</Window>
